package com.dd.cloud.user.entity.menu;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.constants.RegularConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author czg
 * @since 2023-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "轮播图")
public class BannerImg implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 名称
     */
    @Column(length = RegularConstants.Verify.MAX_NAME, comment = "名称")
    private String name;

    /**
     * 跳转链接
     */
    @Column(length = RegularConstants.Verify.MAX_URL, comment = "跳转链接")
    private String skipUrl;

    /**
     * 备注
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "备注")
    private String remarks;

    /**
     * 图片链接
     */
    @Column(length = RegularConstants.Verify.MAX_URL, comment = "图片链接")
    private String url;

    /**
     * 操作人
     */
    @Column(comment = "操作人")
    private Integer operId;

    /**
     * 最后操作人
     */
    @Column(comment = "最后操作人")
    private Integer lastOperId;

    /**
     * 内容类型
     */
    @Column(comment = "内容类型")
    private Integer type;

    /**
     * 添加时间
     */
    @Column(comment = "添加时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    @Column(comment = "修改时间", defaultValue = "now()")
    private LocalDateTime updateDate;

    /**
     * 状态
     */
    @Column(comment = "状态 1正常 -1删除 2下架")
    private Integer status;

    /**
     * 排序
     */
    @Column(comment = "排序")
    private Integer sort;
}
